package cn.echo.modules.sys.dao;

import cn.echo.modules.sys.entity.Admin;

import java.util.List;

/**
 * Created by LSF_ on 2017/5/7.
 */
public interface AdminDao {
    //1.查询 admin 所有信息
    public List<Admin> findAll();
    //1.1根据用户名查id
    public String findIdByUsername(Admin admin);
    //1.2根据用id查所有信息
    public Admin findAdminById(Admin admin);
    //1.3 根据Admin id查询出 创建的所有User
    public  Admin findAllUserByAdminId(Admin admin);


    //2.插入一行
    public boolean insertAdmin(Admin admin);

    //3.根据id更新
    public boolean updateAdminById(Admin admin);
    //4.删除数据 根据id name 都可以
    public boolean deleteAdmin(Admin admin);
    //5.查询数据库
    public List<Admin> selectAdmin(Admin admin);
    //6查询账户
    public List<Admin> selectAdmin1(Admin admin);
 }
